<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>原型链</title>
</head>
<body>

</body>
<script>
    // 绝大多数对象的最终都会继承自 Object.prototype
    // Object.create(原型)

    Grand.prototype.lastName = "hflxhn";
    function Grand() {

    }

    var grand = new Grand();

    Father.prototype = grand;
    function Father() {

    }

    var father = new Father();

    Son.prototype = father;
    function Son() {

    }

    var son = new Son();

</script>
</html>
